class StatisticsBean {
  final String timeRange;
  final double averageFuelConsumption;
  final double averageTripDistance;
  final double averageCostPerKm;
  final int totalMileage;
  final double totalCost;
  final double totalFuel;
  final String year; // 新增的表示年度的变量

  StatisticsBean({
    required this.timeRange,
    required this.averageFuelConsumption,
    required this.averageTripDistance,
    required this.averageCostPerKm,
    required this.totalMileage,
    required this.totalCost,
    required this.totalFuel,
    required this.year, // 在构造函数中添加参数
  });
}
